package com.zhkj.crawl.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ShutdownHook implements DisposableBean {

    @Override
    public void destroy() throws Exception {
        System.out.println("pre destroy...");
    }

}
